home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: novice.uwaterloo.ca!news
- From: Layi Oshinowo <layi@real.uwaterloo.ca>
- Subject: Q: WSAMPRSI, Profiling a program
- Sender: news@novice.uwaterloo.ca (Mr. News)
- Message-ID: <31527A84.41C6@real.uwaterloo.ca>
- Date: Fri, 22 Mar 1996 10:01:40 GMT
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- Nntp-Posting-Host: real.uwaterloo.ca
- Mime-Version: 1.0
- X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP22)
- Organization: University of Waterloo
-
- Can anyone tell me why my code apparently runs faster when I sample
- it (using WATCOM's WSAMPRSI)?
-
- I have my program spit out the elapsed time at the end of its
- execution.
- When i run main.exe on a particular mechanism, it takes about 10
- seconds. However, when I run it through the sampler (wsamprsi
- main), it takes about 7.5 seconds.
-
- I don't know why this would happen...anyone?
-
- Thanks in advance,
- --
- +---------------------------------------------------------------+
- | Layi Oshinowo |
- | Email: layi@real.uwaterloo.ca |
- | WWW : http://real.uwaterloo.ca/~layi/layi.html |
- +---------------------------------------------------------------+
-